﻿using System;
using System.Collections.Generic;
using System.Text;

namespace TSVNAddinUtils
{
	public class UtilsCommandComposite : IUtilsCommand
	{
		List<IUtilsCommand> _Commands = new List<IUtilsCommand>();

		public void Exec(string[] args)
		{
			foreach (IUtilsCommand cmd in _Commands)
				cmd.Exec(args);
		}

		public void Add(IUtilsCommand command)
		{
			_Commands.Add(command);
		}
	}
}
